function a(name) {
    var b = new object();
    b.name = name;
    b.say = function() {
        alert(this.name);
    }
    return b
}